package v1

import (
	"github.com/gin-gonic/gin"
	"guns-go/model/request"
	"guns-go/model/response"
	"guns-go/service"
)

// @Tags SMS
// @Summary 短信分页数据分页查询
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.SysSmsInfoParam true "请求参数"
// @Success 200 {string} string "{"success":true,"data":{},"message":"请求成功","code":200}"
// @Router /sms/page [get]
func SysSmsPage(c *gin.Context) {

	var S request.SysSmsInfoParam
	_ = c.ShouldBindQuery(&S)

	err, SmsPageResult := service.SysSmsPage(&S, c)

	if err != nil {
		response.FailWithMessage(err.Error(), c)
		return
	}
	response.OkWithData(SmsPageResult, c)
}
